package com.cloudfun.campusshare.repo;

import com.cloudfun.campusshare.entity.DeviceModeSetEntity;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

/**
 * Created by Huqin on 2020/5/11
 */
public interface DeviceModeSetRepo extends PagingAndSortingRepository<DeviceModeSetEntity, String>,
        JpaSpecificationExecutor<DeviceModeSetEntity> {

    List<DeviceModeSetEntity> findAllByCreatorId(String id);

    DeviceModeSetEntity findByIdAndDeviceType(String id, String deviceType);

}
